package com.jsoup.mapper;

import com.jsoup.bean.Comment;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface CommentMapper {
    int deleteByPrimaryKey(@Param("commentId") Integer commentId);

    int insert(@Param("comment") Comment comment);

    int insertSelective(@Param("comment") Comment comment);

    Comment selectByPrimaryKey(@Param("commentId") Integer commentId);

    int updateByPrimaryKeySelective(@Param("comment") Comment comment);

    int updateByPrimaryKey(@Param("comment") Comment comment);

    List<Comment> selectComment(@Param("comment") Comment comment);
}